home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19960209-19960425 / 000228_news@columbia.edu _Tue Mar 19 09:28:40 1996.msg < prev    next >
Internet Message Format  |  1996-05-13  |  6KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id JAA23906 for <kermit.misc@watsun>; Tue, 19 Mar 1996 09:28:40 -0500 (EST)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id JAA03876 for kermit.misc@watsun; Tue, 19 Mar 1996 09:28:35 -0500 (EST)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: LF problem on Ckermit vax/vms and axp/vms talking to sco
  8. Date: 19 Mar 1996 14:28:26 GMT
  9. Organization: Columbia University
  10. Lines: 123
  11. Message-ID: <4imgaa$3p0@apakabar.cc.columbia.edu>
  12. References: <4ic3a7$568@cloner2.ix.netcom.com> <4icdcm$lm8@apakabar.cc.columbia.edu> <4ikhnk$714@ixnews3.ix.netcom.com>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <4ikhnk$714@ixnews3.ix.netcom.com>,
  16. David Pollack  <adldata@ix.netcom.com> wrote:
  17. : In <4icdcm$lm8@apakabar.cc.columbia.edu> fdc@watsun.cc.columbia.edu
  18. : (Frank da Cruz) writes: 
  19. : >
  20. : >In article <4ic3a7$568@cloner2.ix.netcom.com>,
  21. : >David Pollack  <adldata@ix.netcom.com> wrote:
  22. : >: I have ckermit 5a(190) running on digital vms (vax and alpha)
  23. : >: using a script to connect to an sco unix system.
  24. : >: 
  25. : >: From the vax, it works fine. the script waits for the logon 
  26. : >: prompt,sends the logon id, wait for the password prompt, 
  27. : >: sends the password, does what it needs to. This is repeatable.
  28. : >: 
  29. : >: From the alpha, it connects, waits for the logon script, sends 
  30. : >: the logon id, waits for the password prompt, never gets/sees 
  31. : >: it and times out. This is repeatable.
  32. :
  33. : > [response deleted...]
  34. :
  35. : Your response appears to be for connecting TO a VMS system. I am 
  36. : trying to go from vms (vax and alpha) to a unix system. I tried 
  37. : your suggestion and and got the same results from both systems:
  38. :  ************ extract starts ***********
  39. : $9$DKA0:[dirname] C-Kermit>set term debug on
  40. :  ........ dialing sequence ..........
  41. : CONNECT
  42. :   
  43. :  Call complete: 14:30:07.
  44. : $9$DKA0:[AARON] C-Kermit>c
  45. : -------------- from the alpha -----------------------
  46. : Connecting to _AXP$OPA1:, speed 9600.
  47. : The escape character is ^\ (ASCII 28).
  48. : Type the escape character followed by C to get back,
  49. : or followed by ? to see other options.
  50. : (Session logged to kmsess.log)
  51. : Debugging Display...)
  52. : ^J^M^JECSS^M^J^J^MWelcome to SCO Open Server Enterprise System Release
  53. : 3.0^J^M^
  54. : ^JECSS!login: feelxxx^M^JPassword:^M^JLogin incorrect^M^Jlogin:
  55. : ^M^Jlogin: +++^M
  56. : ^JPassword:^M^JLogin incorrect^M^Jlogin: ^M^Jlogin: +++^M^JOK^M^J
  57. : --------- from the vax system ------------------------
  58. : Connecting to _VAX$TXA4:, speed 9600.
  59. : The escape character is ^\ (ASCII 28).
  60. : Type the escape character followed by C to get back,
  61. : or followed by ? to see other options.
  62. : (Session logged to kmsess.log)
  63. : Debugging Display...)
  64. : ^J^M^JECSS^M^J^J^MWelcome to SCO Open Server Enterprise System Release
  65. : 3.0^J^M
  66. : ^JECSS!login: feelxxx^M^JPassword:^M^JLogin incorrect^M^Jlogin:
  67. : +++^M^JOK^M^J
  68. : *************** extract ends ***********
  69. : anyway: Both systems have always worked fine in manual mode, 
  70. : my problem is logging on using scripts. 
  71. : -Manually, pressing return sends a both CR and LF. Everything
  72. :     works fine.
  73. : -When the script issued a CR after the logon ID, it works on 
  74. :    the vax but not on the alpha. I can't figure out why.
  75. : -Trying to find out what happened, I did "set mac echo on" on the
  76. :    alpha. The problem no longer occurred. "set mac echo off"
  77. :    made the problem show up again. This does not make sense.
  78. : -When the script issued both CR and LF after the logon ID, It 
  79. :    worked on both vax and alpha.
  80. : Any explanation about the difference dialing out from the vax 
  81. : and alpha would be appreciated.
  82. OK, I think I'm awake this time.
  83.  
  84. But I can't explain the difference without some additional information.
  85. The business about having to send LF after a CR is not normal for a
  86. serial connection, and makes it sound more like a TELNET connection.  So
  87. the question is: what is on the other end of the dialup connection?  Is
  88. it a terminal server that uses TELNET protocol to communicate with the
  89. SCO system?  Is it the same terminal server in both cases?
  90.  
  91. TELNET protocol says that carriage returns, when used to indicate the end
  92. of a line or command, must be sent as CR and LF, to distinguish them from
  93. carriage returns used for overstriking, which are to be sent as CR
  94. followed by NUL.  Thus if you are dialing a terminal server that uses
  95. TELNET to get to the Alpha, then it would appear that the terminal server
  96. is not doing the proper CR -> CRLF conversion.  Presumably you could fix
  97. the terminal server's configuration and the problem would go away (and if
  98. you can, you should), otherwise you have to send the extra LF yourself, as
  99. you have done in this case.
  100.  
  101. You can also force EVERY CR to be sent as CRLF by giving the following
  102. command to C-Kermit:
  103.  
  104.   set terminal newline-mode on
  105.  
  106. So that's one possible explanation.  However, the fact that "set macro
  107. echo on" makes the problem go away raises additional suspicions that point
  108. in the direction of a timing problem.  These tend to occur when your
  109. script "types ahead" and the application that your script is talking to
  110. clears its input buffer of the material that your script has sent to it in
  111. advance of when it is requested, and this happens most often during the
  112. login process, as a security precaution against cracking programs.
  113.  
  114. Now your script is not "typing ahead", but there is still that split
  115. second between the time the host clears its buffer and when it's safe
  116. to start sending characters again.  Sometimes all you need is the
  117. judiciously-placed PAUSE command, e.g.:
  118.  
  119.   input 20 Username:
  120.   if fail stop 1 No username prompt
  121.   output \m(myusername)\13
  122.   input 10 Password:
  123.   if fail stop 1 No password prompt
  124.   pause 1
  125.   output \m(mypassword)\13  
  126.  
  127. If none of this helps, then get back to me directly and we'll go into
  128. it more deeply.
  129.  
  130. - Frank